<template>
    <div>
        <el-container>
            <el-aside width="80px" style="background-color: rgb(238, 241, 246)">Aside1</el-aside>
            <el-aside width="200px">Aside</el-aside>
            <el-container>
                <el-header>Header</el-header>
                <el-main>
                    <el-table :data="tableData">
                        <el-table-column prop="receiver" label="" width="200">
                        </el-table-column>
                        <el-table-column prop="sender" label="" width="200">
                        </el-table-column>
                    </el-table>
                </el-main>
                <el-input type="textarea" :autosize="{ minRows: 5, maxRows: 5}" resize=none placeholder="请输入内容" v-model="textarea"></el-input>
                <el-row type="flex" justify="end">
                    <el-button size="medium" type="primary" plain>发送</el-button>
                </el-row>
            </el-container>
        </el-container>
    </div>
</template>

<script>
    export default {
        data() {
            const item = {
                receiver: '接收消息',
                sender: '发送消息'
            };
            return {
                tableData: Array(20).fill(item)
            }
        }
    }
</script>

<style scoped>
    .el-header {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 60px;
    }
    .el-footer {
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 160px;
    }
    .el-aside {
        background-color: #D3DCE6;
        color: #333;
        text-align: center;
        line-height: 500px;
    }
    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        line-height: 160px;
    }
    body>.el-container {
        margin-bottom: 40px;
    }
    .el-container:nth-child(5) .el-aside,
    .el-container:nth-child(6) .el-aside {
        line-height: 360px;
    }
    .el-container:nth-child(7) .el-aside {
        line-height: 420px;
    }
</style>